package com.jiyun.controller;

import com.jiyun.mapper.OrdersMapper;
import com.jiyun.service.IOrdersService;
import com.jiyun.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/riderQueue")
@Slf4j
public class OrdersController {
    @Autowired
    private IOrdersService ordersService;

    @RequestMapping("findOrders")
    public Result findOrders(String oid,Integer id) {
        ordersService.findOrders(oid,id);
        return Result.ok();
    }
}
